package com.huaxin.hxmoduleworkorder.common.annotation.validation;

import com.huaxin.hxmoduleworkorder.common.validator.InspectionOrderItemResultStatusValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = InspectionOrderItemResultStatusValidator.class)
@Documented
public @interface ValidInspectionOrderItemResultStatus {
    String message() default "无效的检查结果状态，允许值：pending/normal/abnormal";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}